FetchParamsType
import { FetchParamsType } from "@hyper-fetch/core"
Description
If the command endpoint parameters are not filled it will throw an error
Defined in command/command.types.ts:217
Preview
type FetchParamsType<EndpointType,HasParams> = ExtractRouteParams<EndpointType> extends NegativeTypes ? { params?: NegativeTypes } : true extends HasParams ? { params?: NegativeTypes } : { params: ExtractRouteParams<EndpointType> };
Structure
ExtractRouteParams<EndpointType> extends NegativeTypes ? {
params: NegativeTypes;
} : (true extends HasParams ? {
params: NegativeTypes;
} : {
params: ExtractRouteParams<EndpointType>;
})